package com.talent.service.admin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

/**
 * @ClassName：MainApplication
 * @Author: hszhou
 * @Date: 2024/12/6 14:59
 * @Description: 必须描述类做什么事情, 实现什么功能
 */
@SpringBootApplication(scanBasePackages = {"com.talent.service.admin",
        "com.talent.service.base",
        "com.talent.common"})
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.talent.service.base")
@EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true)
public class AdminApplication {

    public static void main(String[] args) {

        SpringApplication.run(AdminApplication.class);

    }
}
